package cn.zkc.pattern.Strategy;

/**
 * @Author : kay
 * @Date : 2020-07-02 16:10
 **/

public class Context {

    private Strategy strategy;

    public Context(Strategy strategy){
        this.strategy =strategy;
    }

    public int calculate(int num1, int num2){
      return strategy.calculate(num1,num2);
    }
}
